import request from '@/utils/request'

// 更新用户状态
export function modifyStateReq(params) {
  return request({
    url: '/admin/user/modifyUserState',
    method: 'GET',
    params
  })
}

// 修改用户信息
export function modifyUserInfoReq(data) {
  return request({
    url: '/admin/user/modifyUserInfo',
    method: 'POST',
    data
  })
}

// 更新用户状态
export function getUserListReq(data) {
  return request({
    url: '/admin/user/list',
    method: 'POST',
    data
  })
}

// 根据id获得用户信息
export function getUserByIdReq(params) {
  return request({
    url: '/admin/user/getUserById',
    method: 'GET',
    params
  })
}

// 重置用户密码
export function resetPasswordReq(params) {
  return request({
    method: "GET",//
    url: `/test/resetPassword`,
    //url: `/admin/user/resetPassword`,
    params
  })
}
